home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 103
/
Vol 103.iso
/
games
/
starship.swf
/
scripts
/
DefineSprite_123
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-03-13
|
560b
|
36 lines
function init()
{
var i = 1;
while(_root.cst.maxMonster >= i)
{
tellTarget("../monster_" + i)
{
_root.temp.monsterFrames = _totalframes;
}
if(Number(_root.temp.monsterFrames) == 0)
{
_name = "monster_" + i;
break;
}
i++;
}
monster.gotoAndStop(1);
if(start ne "")
{
gotoAndPlay(start + 1);
}
else
{
gotoAndPlay(2);
}
}
function hit()
{
if(ready == true)
{
monster.nextFrame();
}
}
init();
play();